package servicios;

import java.util.LinkedHashSet;

import model.Autor;
import model.Usado;
import homes.DepositoHome;
import homes.EmpresaHome;
import homes.UsadoHome;

public class CrearUsado implements Operation<Usado> {
    public Usado execute() {
        UsadoHome usadoH = new UsadoHome();
        DepositoHome depositoH = new DepositoHome();
        EmpresaHome empresaH = new EmpresaHome(); 
        Usado usado = new Usado("l4o9", "liritCol", 20, new LinkedHashSet<Autor>(), depositoH.get(1), empresaH.get(1));
        usadoH.save(usado);
        return null;
    }
}